package com.wwl.cms.utils.designModeTest.visitor;

/**
 * @author wwl
 * @version 1.0
 * @date 2021/9/9 18:45
 * @description:访问者模式
 */
public class Client {
    public static void main(String[] args) {
        ObjectStructure objectStructure = new ObjectStructure();
        objectStructure.attach(new Man());
        objectStructure.attach(new Woman());

        Success success = new Success();
        objectStructure.display(success);
        System.out.println("----------------");

        Fail fail = new Fail();
        objectStructure.display(fail);

        Wait wait = new Wait();
        objectStructure.display(wait);
    }
}
